<script type="text/javascript">
	function deleteComment(post_id)
	{
		   $.ajax({
				type: 'POST',
				url: 'bigApi.php',
				data: 'islem=delete_comments&cid='+post_id,	   
				success: function(ajaxCevap) {
					if(ajaxCevap == 'true')
					{
						$('#com-'+post_id).remove();
					}
					else
					{
						alert(ajaxCevap);
					}
				}
			});
	}                                                                                                                           
</script>
<div class="_100">
	<div class="block-border">
		<div class="block-header">
			<h1>Last Comments</h1><span></span>
		</div>
		<div class="block-content">
			<!-- <div class="alert success no-margin"><span class="hide">x</span><strong>Success</strong> Lorem ipsum dolor sit amet.</div>
			<div class="alert error no-margin"><span class="hide">x</span><strong>Error</strong> Lorem ipsum dolor sit amet.</div>
			<div class="alert warning no-margin"><span class="hide">x</span><strong>Warning</strong> Lorem ipsum dolor sit amet.</div>
			<div class="alert info no-margin"><span class="hide">x</span><strong>Information</strong> Lorem ipsum dolor sit amet.</div> -->
			
			<?php
				foreach($commentsArray as $comments)
				{
					?>
					<div class="alert note no-margin" id="com-<?php echo $comments['id']; ?>"><span class="align-right"><img src="img/icons/packs/fugue/16x16/cross.png" onclick="deleteComment('<?php echo $comments['id']; ?>')" style="cursor: pointer;"></span><strong><?php echo $comments['fromid']; ?>:</strong> <?php echo $comments['text']; ?></div>
					<?php
				}
			?>
			
		</div>
	</div>
</div>